gusucode.com > 支持向量机工具箱 - LIBSVM OSU_SVM LS_SVM源码程序 > 支持向量机工具箱 - LIBSVM OSU_SVM LS_SVM\stprtool\datasets\x2img.m

    function [img]=x2img(x,width,height)
% X2IMG reshapes vector x into an image of given shape.
%   [img]=x2img(x,width,height)
%
% X2IMG reshapes given vector x into matrix of 
%   size height-by-width.
%
% See IMG2X, PIMG, PGM2X, PGM2MI.
%

% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac
% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz
% Written Vojtech Franc (diploma thesis) 02.01.2000
% Modifications
% 16-apr-2001, V.Franc, created.
%

img = reshape(x,width,height)'; 

return;